package game.messages.login
{
	import engine.network.*;
	import flash.utils.*;
	
	public class RxLogin_ClientInfo extends RxNetMessageBase
	{
		public var device:String;
		public var os:String;
		public var systemLanguage:String;
		public var browserName:String;
		public var browserVersion:String;
		public var socialNetwork:String;
		public var socialNetworkUserId:String;
		public var graphicsDriverType:String;
		public var flashVersion:String;
		public var flashType:String;
		public var screenWidth:int;
		public var screenHeight:int;
		public var landingUrl:String;
		public static const fixedSize:Boolean = false;
		
		public function RxLogin_ClientInfo()
		{
		}
		
		override public function GetBinarySize(param1:Number) : int
		{
			return GetSize_String(this.device) + GetSize_String(this.os) + GetSize_String(this.systemLanguage) + GetSize_String(this.browserName) + GetSize_String(this.browserVersion) + GetSize_String(this.socialNetwork) + GetSize_String(this.socialNetworkUserId) + GetSize_String(this.graphicsDriverType) + GetSize_String(this.flashVersion) + GetSize_String(this.flashType) + GetSize_String(this.landingUrl) + 8;
		}
		
		override public function ToBinary(param1:ByteArray, param2:Number) : void
		{
			Write_String(param1, this.device);
			Write_String(param1, this.browserVersion);
			Write_String(param1, this.systemLanguage);
			Write_int32(param1, this.screenWidth);
			Write_String(param1, this.browserName);
			Write_String(param1, this.socialNetwork);
			Write_String(param1, this.flashVersion);
			Write_String(param1, this.socialNetworkUserId);
			Write_String(param1, this.os);
			Write_String(param1, this.landingUrl);
			Write_String(param1, this.graphicsDriverType);
			Write_int32(param1, this.screenHeight);
			Write_String(param1, this.flashType);
		}
		
		override public function FromBinary(param1:ByteArray, param2:Number) : void
		{
			this.device = Read_String(param1);
			this.browserVersion = Read_String(param1);
			this.systemLanguage = Read_String(param1);
			this.screenWidth = Read_int32(param1);
			this.browserName = Read_String(param1);
			this.socialNetwork = Read_String(param1);
			this.flashVersion = Read_String(param1);
			this.socialNetworkUserId = Read_String(param1);
			this.os = Read_String(param1);
			this.landingUrl = Read_String(param1);
			this.graphicsDriverType = Read_String(param1);
			this.screenHeight = Read_int32(param1);
			this.flashType = Read_String(param1);
		}
	}
}